package com.itheima.service.impl;

import com.itheima.service.UserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements UserService {

    public    int save() {
//        System.out.println("共性方法");
//        int i=1/0;
        System.out.println("你好");
        return 10;
    }

//    public int hello(int num) {
//        return 0;
//    }

    public    int hello(int num) {
//        System.out.println("共性方法");
        int i=1/0;
        System.out.println("你好........."+num);
        return 10;
    }


}
